package com.danico.danicoproject.objects;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.danico.danicoproject.DanicoProject;


public class Wall {
	
	private Sprite sprite;
	private Vector2 position;
	private Rectangle hitbox;
	public Rectangle getHitbox(){return hitbox;}
	
	public Wall(float x, float y){
		
		position = new Vector2(x*32,y*32);
	}
	
	public void init(){
		
		Texture texture = DanicoProject.assets.get("data/wall.png", Texture.class);
		sprite = new Sprite(texture);
		hitbox = new Rectangle(position.x, position.y, sprite.getWidth(), sprite.getHeight());
	}
	
	public void draw(SpriteBatch batch){
		
		batch.draw(sprite, position.x, position.y);
	}
}
